cmake_minimum_required(VERSION 3.10)
project(PSC_classc)
set(CMAKE_CXX_STANDARD 11)

add_executable(main_sender
    main_sender.cpp
    FileSender.cpp
    MD5.cpp
)

add_executable(main_receiver
    main_receiver.cpp
    FileReceiver.cpp
    MD5.cpp
    FitsConverter.cpp
)

target_include_directories(main_sender PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(main_receiver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

target_link_libraries(main_sender PRIVATE pthread)
target_link_libraries(main_receiver PRIVATE pthread) 
target_link_libraries(main_receiver PRIVATE CCfits cfitsio)
target_include_directories(main_receiver PRIVATE /usr/local/include)
link_directories(/usr/local/lib) 